package core;

/**
 * Singleton node representing java.lang.System, providing streams
 * for standard input and output
 * 
 * @author Wijnand
 */
public class System extends StdNode {
	private static System instance = new System();
	
	public static System getInstance() { return instance; }
	
	private OutPort out = new OutPort(java.lang.System.out.getClass())	// PrintStream.class
	{
		public Object getValueInternal() {
			return java.lang.System.out;
		}	
	};
	
	private OutPort in = new OutPort(java.lang.System.in.getClass())	// InputStream.class
	{
		public Object getValueInternal() {
			return java.lang.System.in;
		}	
	};
	
	private System() 
	{
		autoPutPorts();
	}
	
	
}
